package com.bdqn.param.requset;

import com.bdqn.entity.Dish;
import com.bdqn.entity.DishFlavor;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 继承dish 拥有它的所有属性和方法
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class DishParam extends Dish {
    /**
     * 菜品和口味一对多的关系
     */
    private List<DishFlavor> flavors;
}
